<?php
class system_db_statement_exception extends system_db_exception {
	
	/**
	 * Check if this general exception has a specific database driver specific exception nested inside.
	 *
	 * @return bool
	 */
	public function hasChainedException() {
		return ($this->getPrevious()!==null);
	}
	
	/**
	 * @return Exception|null
	 */
	public function getChainedException() {
		return $this->getPrevious();
	}
}